TRIPLETS_MAX = 4
PAIR_MAX = 1
HAND_COUNT_MAX = 14


class Kind(object):
    """docstring for Kind"""
    Dot = 1
    Bamboo = 2
    Character = 3

    Red = 4
    Green = 5
    White = 6

    East = 7
    South = 8
    West = 9
    North = 10

    Spring = 11
    Summer = 12
    Autumn = 13
    Winter = 14
    Plum = 15
    Orchid = 16
    Bamboos = 17
    Chrysanthemum = 18


class KindGroup(object):
    Suits = 1
    Honor = 2
    Flowers = 3


class TilesType(object):
    """docstring for RuleType"""
    Base = 1


# Suits = [Kind.Dot,Kind.Bamboo,Kind.Character]
# Honor = [Kind.Red,Kind.Green,Kind.White,Kind.East,
# Kind.South,Kind.West,Kind.North]
# Flowers = [Kind.Spring,Kind.Summer,Kind.Autumn,Kind.Winter,
# Kind.Plum,Kind.Orchid,Kind.Bamboo,Kind.Chrysanthemum]

majiangConfig = {
    KindGroup.Suits: {
        "members": [Kind.Dot, Kind.Bamboo, Kind.Character],
        "maxRank": 9,
        "maxCount": 4,


    },

    KindGroup.Honor: {
        "members": [Kind.Red, Kind.Green, Kind.White,
                    Kind.East, Kind.South, Kind.West, Kind.North],
        "maxRank": 1,
        "maxCount": 4,
    },
    KindGroup.Flowers: {
        "members": [Kind.Spring, Kind.Summer, Kind.Autumn, Kind.Winter,
                    Kind.Plum, Kind.Orchid, Kind.Bamboo, Kind.Chrysanthemum],
        "maxRank": 1,
        "maxCount": 1,
    }
}


testRule = {
    "playerMaxCount": 4,
    "playerMinCount": 2,
    "round": 4,
    "scoreUnit": 1,
    "TilesType": TilesType.Base,

}
